package br.com.lh.urabuilder.domain.xml
{
	import br.com.lh.urabuilder.model.UraModelLocator;
	
	import mx.collections.ArrayCollection;
	import mx.resources.ResourceManager;
	
	public class RedirectAction extends BaseAction
	{
		private var availableExtension:ArrayCollection = UraModelLocator.getInstance().resourceManager.availableExtension;

		public var number:UraActionField = new UraActionField(null,
		ResourceManager.getInstance().getString('messages','ura.components.extension'),
		"-",availableExtension);
		
		override public function xmlName():String{
			return "Redirect";
		}
		
		override public function toolTipText():String{
			return "Redirects the user to a given phonenumber";
		}
		
		public function RedirectAction()
		{
			super();
		}
		
		override public function toXML(includeNull:Boolean):XML{
			var newXmlRow:XML= <Redirect></Redirect>
			super.buildXml(newXmlRow,includeNull);
			return newXmlRow;
		}

	}
}